﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="EditHotel.aspx.vb" Inherits="Phila.EditHotel" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="98%" cellpadding="2" cellspacing="2" align="center">
        <tr>
            <td>
                <h1>
                    Add/Edit Hotel
                </h1>
                <fieldset>
                    <legend><b>Hotel  Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <b>Hotel Name</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" MaxLength="150" Width="500px" CssClass="form-text"></asp:TextBox>
                                &nbsp;<span title="Enter Hotel Name" class="toolTip"><img alt="Help" src="images/help.gif" /></span><asp:RequiredFieldValidator 
                                    ID="reqName" runat="server" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Hotel  Name" Font-Bold="False"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Hotel Category</b>
                            </td>
                            <td>
                                <asp:DropDownList ID="cmbCategory" runat="server" CssClass="form-text">
                                    <%--<asp:ListItem Value="0">--Select--</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>--%>
                                </asp:DropDownList> Star
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="cmbCategory"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Select Category" InitialValue="0"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Address</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtAddress" runat="server" Width="200px" Rows="3" CssClass="form-text" 
                                    TextMode="MultiLine" MaxLength="500"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Phone</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server" Width="200px" Rows="3"  CssClass="form-text"
                                    TextMode="MultiLine" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Email</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="200px" MaxLength="100" CssClass="form-text"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Contact Person</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtPerson" runat="server" Width="200px" MaxLength="100" CssClass="form-text"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>City</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCity" runat="server" Width="200px" MaxLength="100" CssClass="form-text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqCity" runat="server" ControlToValidate="txtCity"
                                    Display="Dynamic" ErrorMessage="&lt;br/&gt;Enter City" Font-Bold="False" 
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Region</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtRegion" runat="server" Width="200px" MaxLength="100" CssClass="form-text"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Country</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCountry" runat="server" Width="200px" MaxLength="100" CssClass="form-text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCountry"
                                    Display="Dynamic" ErrorMessage="&lt;br/&gt;Enter Country" Font-Bold="False" 
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Room Category</b>
                            </td>
                            <td>
                                <asp:CheckBoxList ID="chkRoomCat" runat="server" RepeatColumns="6" 
                                    RepeatDirection="Horizontal" CellPadding="5" Height="34px">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Room Type</b>
                            </td>
                            <td>
                                <asp:CheckBoxList ID="chkRoomType" runat="server" RepeatColumns="6" RepeatDirection="Horizontal" CellPadding="5">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Type of Meal</b>
                            </td>
                            <td>
                                <%--<asp:DropDownList ID="cmbMeal" runat="server">
                                </asp:DropDownList>--%>
                                <asp:CheckBoxList ID="chkMeal" runat="server" RepeatColumns="6" RepeatDirection="Horizontal" CellPadding="5">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <%--<asp:ListItem Value="0">--Select--</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>--%>
                        <tr>
                            <td>
                                <b>Thumbnail</b>
                            </td>
                            <td>
                                <asp:FileUpload ID="fileUpload" runat="server" />
                                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateFileUpload"
                                    ValidationGroup="icon" ErrorMessage="Only .jpg,.gif Files Accept" Text="*" ControlToValidate="fileUpload"
                                    Display="Dynamic" SetFocusOnError="true" CssClass="red"></asp:CustomValidator>
                                <asp:Literal ID="ltrImg" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Additional Info</b>
                            </td>
                            <td>
                                <cc1:Editor ID="txtDescription" runat="server" Height="300px" Width="100%" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Supplements</b>
                            </td>
                            <td>
                               <cc1:Editor ID="txtSupp" runat="server" Height="300px" Width="100%" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Google Map</b>
                            </td>
                            <td>
                                <asp:FileUpload ID="fileGMap" runat="server" />
                                <asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="ValidateFileUpload"
                                    ValidationGroup="icon" ErrorMessage="Only .jpg,.gif Files Accept" Text="*" ControlToValidate="fileGMap"
                                    Display="Dynamic" SetFocusOnError="true" CssClass="red"></asp:CustomValidator>
                                <asp:Literal ID="ltrMap" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>View Order
                            </td>
                            <td>
                                <asp:TextBox ID="txtViewOrder" runat="server" MaxLength="5" Width="100px" CssClass="form-text">0</asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqViewOrder" runat="server" Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter View Order"
                                    Font-Bold="False" ControlToValidate="txtViewOrder" CssClass="red"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="regVOrder" runat="server" ControlToValidate="txtVieworder"
                                    ErrorMessage="&lt;br /&gt;Enter only Numeric value" ValidationExpression="\d*[0-9]"
                                    ValidationGroup="submit" Display="Dynamic" CssClass="red"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>IsActive</strong>
                            </td>
                            <td>
                                <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <fieldset>
                    <legend><b>Meta Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td width="180px">
                                <strong>Title</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMTitle" runat="server" MaxLength="500" Width="300px" CssClass="form-text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMTitle" runat="server" ControlToValidate="txtMTitle"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Title" Font-Bold="False"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Keywords</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMKeywords" runat="server" MaxLength="500" Width="300px" Rows="5" CssClass="form-text"
                                    TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMKeywords" runat="server" ControlToValidate="txtMKeywords"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Keywords" Font-Bold="False"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Description</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMDescription" runat="server" MaxLength="500" Width="300px" Rows="5" CssClass="form-text"
                                    TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMDesc" runat="server" ControlToValidate="txtMDescription"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Description" Font-Bold="False"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <br />
                <fieldset>
                    <table width="98%" cellpadding="2" cellspacing="2" align="center">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="submit" CssClass="form-button" />&nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="form-button" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
